/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.service.glcRq;

import com.plian.system.entity.glc.GlcBaseBusinessIndicatorsRq;
import com.plian.system.entity.pf.BaseBusinessIndicators;
import com.plian.system.model.ListResult;
import com.plian.system.model.R;
import com.plian.system.mybatis.base.BaseService;
import com.plian.system.mybatis.support.Query;
import com.plian.system.vo.glc.GlcBaseBusinessIndicatorsRqVO;
import com.plian.system.vo.pf.BaseBusinessIndicatorsVO;

import java.util.List;

/**
 * 服务类
 *
 * @author
 * @since 2019-09-27
 */
public interface IGlcBaseBusinessIndicatorsRqService extends BaseService<BaseBusinessIndicators> {


    /**
     * 每年只能填写一次
     * @param baseBusinessIndicatorsRq
     * @return
     */
    String checkYear(BaseBusinessIndicators baseBusinessIndicatorsRq);


    /**
     * 保存 包含子表
     * @param baseBusinessIndicatorsRq
     * @return
     */
    boolean submit(BaseBusinessIndicators baseBusinessIndicatorsRq);

    /**
     * 获取detail obj对象
     * @param baseBusinessIndicatorsRqVO
     * @return
     */
    R<BaseBusinessIndicatorsVO> getDetailObj(BaseBusinessIndicatorsVO baseBusinessIndicatorsRqVO);


    /**
     * @Author: Take-off
     * @Description: //TODO 进度表查询基本详情
     * @Date: 10:34 AM 2022/12/16
     * @Param: [dto]
     * @return: com.plian.system.vo.pf.BaseBusinessIndicatorsVO
     **/
    BaseBusinessIndicatorsVO getDetailByMonth(String fillingMonth,String fillingUnitId);

    BaseBusinessIndicatorsVO getDetailByDto(String fillingYear,String fillingUnitId);

    /**
     * @Author: Take-off
     * @Description: //TODO 获取最新的经营绩效
     * @Date: 2:34 PM 2023/1/3
     * @Param: [initialId]
     * @return: com.plian.system.entity.pf.BaseBusinessIndicators
     **/
    BaseBusinessIndicators findLatestByInitialId(Long initialId);
    /**
     * @Author: Take-off
     * @Description: //TODO 查看版本
     * @Date: 4:13 PM 2023/1/3
     * @Param: [initialId]
     * @return: java.util.List<com.plian.system.vo.pf.BaseBusinessIndicatorsVO>
     **/
    ListResult<BaseBusinessIndicatorsVO> versionList(Query query);

    /**
     * @Description: 保存数字宁波接口数据
     * @Author: Take-off
     * @Date: 11:30 AM 2023/5/22
     * @Param: [data]
     * @return: java.lang.String
     **/
    String saveBaseBusiness(String data);

    /**
     * @Description:  返回数字宁波数据
     * @Author: Take-off
     * @Date: 3:45 PM 2023/5/25
     * @Param: []
     * @return: java.util.List<com.plian.system.entity.pf.BaseBusinessIndicators>
     **/
    List<BaseBusinessIndicators> getSourceData();
}
